package com.qiyun.amqp.controller;

import com.qiyun.amqp.service.HelloSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Created by double.
 * @Date: 2018/8/22
 * @remarks:
 *         测试
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

     @Autowired
     HelloSender helloSender;

    @GetMapping("/test")
    public  String   print(){
        helloSender.send("测试死信队列，消息延迟~");
        return  " test  print success !!!!   1";
    }

}
